package edu.pinkhub.shiro_test.entity;    //cn.zy

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 
 * 
 * @author zhangsan		//zhangsan
 * @email qis@gmail.com			//qis@gmail.com
 * @date 2022-06-28 18:46:57		//2022-06-27 15:26:04
 */
@Data
@TableName("depts")		//smbms_bill
public class Depts implements Serializable {    //SmbmsBill
	private static final long serialVersionUID = 1L;

	/**
	 * 部门id
	 */
	@TableId(value = "deptid",type = IdType.AUTO)
    private Integer deptid;
	/**
	 * 部门名称
	 */
	@TableField(value = "name")
	private String name;
	/**
	 * 排序
	 */
	@TableField(value = "sort")
	private Integer sort;
	/**
	 * 领导
	 */
	@TableField(value = "loader")
	private String loader;
	/**
	 * 电话
	 */
	@TableField(value = "phone")
	private String phone;
	/**
	 * 邮箱
	 */
	@TableField(value = "email")
	private String email;
	/**
	 * 创建者
	 */
	@TableField(value = "createby")
	private String createby;
	/**
	 * 创建时间
	 */
	@TableField(value = "createdate")
	private Date createdate;
	/**
	 * 上次修改时间
	 */
	@TableField(value = "lastmodify")
	private Date lastmodify;
	/**
	 * 所属父级
	 */
	@TableField(value = "parentid")
	private Integer parentid;

	@TableField(exist = false)		//当前属性不对应表的列
	private List<Depts> children;

	public List<Depts> getChildren() {
		return children;
	}

	public void setChildren(List<Depts> children) {
		this.children = children;
	}

	public Integer getDeptid() {
		return deptid;
	}

	public void setDeptid(Integer deptid) {
		this.deptid = deptid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getLoader() {
		return loader;
	}

	public void setLoader(String loader) {
		this.loader = loader;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getCreateby() {
		return createby;
	}

	public void setCreateby(String createby) {
		this.createby = createby;
	}

	public Date getCreatedate() {
		return createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}

	public Date getLastmodify() {
		return lastmodify;
	}

	public void setLastmodify(Date lastmodify) {
		this.lastmodify = lastmodify;
	}

	public Integer getParentid() {
		return parentid;
	}

	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}
}
